const { MongooseHelper, BaseSchema } = require('../mongoose/mongooseHelper');
const { Schema } = require('mongoose');

// 定义 User 模型的 schema
const userSchema = new Schema({
  username: String,
  email: String,
  password: String,
  // 其他字段...
});

// 继承基础 Schema
userSchema.add(BaseSchema);
// 创建 User 模型的 CRUD 方法
const User = new MongooseHelper('user', userSchema);

module.exports = User;